package com.github.tommas.admintpl.common;

public enum CommonResultCode {
	SUCCESS(0, "操作成功"),
	FAILED(1, "后台处理异常"),
	TOKEN_EXPIRED(2, "Token expired"),
	CONCURRENT_WRITE(3, "concurrent write");

	/** 代码 */
	private long code;

	/** 消息 */
	private String message;

	private CommonResultCode(long code, String message) {
		this.code = code;
		this.message = message;
	}

	/**
	 * @return the code
	 */
	public long getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(long code) {
		this.code = code;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}
}
